import Vue from "vue"
import Vuex from "vuex"
import mutations from "./mutations"
import actions from "./actions"
import getters from "./getters"
import {playMode} from "./config"

Vue.use(Vuex)

const state={
  playing:false,//是否播放
  fullScreen:false,//是否使用全频播放
  playList:[],//播放类表，控制整个播放器是否播放     //playList[currenIndex]
  sequenceList:[],//播放列表
  mode:playMode.sequence,//播放形式
  currenIndex:-1//播放的索引
}
export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters
})
